<?php use_helper('I18N') ?>
<script>
$(function() {
    initTrees();
});
function initTrees() {
    $("#sponsorTree").treeview({
        url: "/member/manipulateSponsorTree"
    });
}
</script>


<p class='bold'><font color='white'><?php echo __('Genealogy for your Shareholder ID').": ".$distinfo->getFCode(); ?></font></p>
<div class='genealogy'>

<ul id="sponsorTree" style="background-color: #ffffff;">
    <?php
        $className = "";
        if ($hasChild) {
            $className = "hasChildren";
        }
    ?>
    <li id="<?php echo $distinfo->getFId();?>" class="<?php echo $className;?>">
        <span><?php echo $distinfo->getFCode()." ".$distinfo->getFNickName()." Joined ".date('Y-m-d', strtotime($distinfo->getFActiveDatetime()));?></span>
        <ul>
            <li><span class="placeholder">&nbsp;</span></li>
        </ul>
    </li>
</ul>

</div>